package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.SurveyContent;
import com.xinhua.repository.SurveyContentRep;

@Component
public class SurveyContentService {
	@Autowired
	private SurveyContentRep surveyContentRep;
	
	public List<SurveyContent> getSurveyContent(){
		return (List<SurveyContent>) surveyContentRep.findAll();
	}
}
